package cn.edu.scau.cmi.linyiqu.composite.safe;

public class SafePerson extends SafeComponent {
	private String name;
	
	public SafePerson(String name) {
		this.name = name;
	}

	@Override
	public String show(int indentation) {
		StringBuilder string=new StringBuilder();
		int i=indentation;
		while((i--)>0)
			string.append('\t');
		return string.toString()+"Person: "+this.getName()+'\n';
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name=name;
	}
}